package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 规格对象 sys_sku
 *
 * @author jjp
 * @date 2020-04-20
 */
@ApiModel("规格对象")
public class SysSku extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 属性id
     */
    @ApiModelProperty(name = "属性id")
    private Long skuId;

    /**
     * json格式例如
     * [
     * {
     * "key": "颜色",
     * "value": "黑色"
     * },
     * {
     * "key": "容量",
     * "value": "32G"
     * }
     * ]
     */
    @ApiModelProperty(name = "/**\n" +
            "      json格式例如\n" +
            "      [\n" +
            "      {\n" +
            "     \"key\": \"颜色\",\n" +
            "      \"value\": \"黑色\"\n" +
            "      },\n" +
            "      {\n" +
            "      \"key\": \"容量\",\n" +
            "      \"value\": \"32G\"\n" +
            "      }\n" +
            "      ]\n" +
            "     /")
    private String data;

    @ApiModelProperty(name = "是否禁用")
    private String delFlag;

    @ApiModelProperty(name = "价格")
    private Double money;

    @ApiModelProperty(name = "分类详情id")
    private Long typeDetailId;

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Double getMoney() {
        return money;
    }

    public void setTypeDetailId(Long typeDetailId) {
        this.typeDetailId = typeDetailId;
    }

    public Long getTypeDetailId() {
        return typeDetailId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("skuId", getSkuId())
                .append("data", getData())
                .append("delFlag", getDelFlag())
                .append("moeny", getMoney())
                .append("typeDetailId", getTypeDetailId())
                .toString();
    }
}
